package com.finance.system.bean.pojo;

import com.finance.framework.lang.BaseObject;
import lombok.Data;

/**
 * 角色菜单关系 实体bean
 * Created by gyw on 2017/3/26.
 */
@Data
public class RoleMenuRel extends BaseObject{
    private Long roleId;//角色id
    private String menuCode;//菜单code
    @Override
    public boolean equals(Object object){
        if(object instanceof RoleMenuRel){
            RoleMenuRel roleMenuRel = (RoleMenuRel) object;
            return roleMenuRel.getId().equals(super.getId());
        }
        return false;
    }
    @Override
    public int hashCode(){
        return this.getId().hashCode();
    }

}
